package com.mall.fegin;

import com.mall.entity.Order;
import com.mall.entity.OrderItem;
import com.mall.entity.pojo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author wwz
 * @date 2023/6/8
 */
@FeignClient(value = "mall-provider",path = "order")
public interface OrderFeign {

    @GetMapping("getDetail.do")
    List<OrderItem> findById(@RequestParam(value = "orderId") int orderId);

}
